package com.beifu.manager.dao;

import com.beifu.manager.model.AssetInfo;
import com.beifu.manager.model.AssetInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AssetInfoMapper {
    int countByExample(AssetInfoExample example);

    int deleteByExample(AssetInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AssetInfo record);

    int insertSelective(AssetInfo record);

    List<AssetInfo> selectByExample(AssetInfoExample example);

    AssetInfo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AssetInfo record, @Param("example") AssetInfoExample example);

    int updateByExample(@Param("record") AssetInfo record, @Param("example") AssetInfoExample example);

    int updateByPrimaryKeySelective(AssetInfo record);

    int updateByPrimaryKey(AssetInfo record);

    AssetInfo selectByRfCode(String rfCode);

    void updateBatch(List<AssetInfo> assetInfoList);

    /**
     * 批量保存 assetInfo数据
     * @param assetInfoList
     */
	void insertBatch(List<AssetInfo> assetInfoList);
	/**
	 * 分页查询资产信息列表界面
	 * @param start
	 * @param pageNum
	 * @param example
	 * @return
	 */
	List<AssetInfo> getAssetInfoPage(@Param("start") int start, @Param("pageNum") int pageNum, @Param("example")AssetInfoExample example);
}